package com.hzf.order.rpc.api;

import com.hzf.order.dao.model.*;

import java.util.List;

/**
 * describe: TODO
 * creat_user: 白开水
 * creat_time: 2017/12/4   14:39
 **/
public interface OrderApiService {
    List<OrderCart> selectByGoods(OrderCartExample example);
    int insertOrder(OrderCart orderCart);
    int delectOrder(OrderCartExample orderCart);
    List<OrderCart> selectByShopId(OrderCartExample orderCartExample);
    int updateCart(OrderCart orderCartExample);
    OrderUserAddress insertOrderUserAddress(OrderUserAddress orderUserAddress);
    List<OrderUserAddress>selectExample(OrderUserAddressExample example);
    int updateAddress(OrderUserAddress example);
    OrderUserAddress getUserAddress(int id);
    int delectAddress(OrderUserAddressExample example);
    OrderUser inserllOrder(OrderUser orderUser);

    OrderUser selectOrder(OrderUserExample orderUserExample);

    int inserllOrderInfo(OrderUserInfo orderUserInfo);
    int updateOrder(OrderUser orderUser);
    int updateOrderInfo(OrderUserInfo orderUser);
    List<OrderUser> selectOrderList(OrderUserExample example);
    List<OrderUserInfo>seleclUserOrderInfoList(Integer example);
    List<OrderUserInfo>selectOrderInfoList(OrderUserInfoExample example);
    int updataOrderNotity(OrderNotity orderNotity);
    int installOrderNotity(OrderNotity orderNotity);

    OrderNotity selectOrderNotyti(OrderNotityExample example);
    List<OrderNotity> selectAllOrderNotity(OrderNotityExample example);

    List<OrderUserInfo>  selectByUserBygoods(Integer userId);
    List<OrderUserInfo> selectByUserByOrderUser(Integer orderUserId);//根据支付订单ID 查询
    //添加设计订单
    int installOrderUserDemand(OrderUserDemand data);
    //获取设计订单
    List<OrderUserDemand> selectOrderUserDemand(OrderUserDemandExample data);
    //获取单一设计订单
    OrderUserDemand getOrderUserDemand(OrderUserDemandExample data);
    //修改设计订单
    int updateOrderUserDemand(OrderUserDemand data);
    //删除设计订单
    int delectOrderUserDemand(OrderUserDemand data);
}
